#pragma once

#include "MprpcConfig.h"
#include "MprpcChannel.h"
#include "MprpcController.h"
#include "Logger.h"

// mprpc框架的基础类，单例模式
class MprpcApplication
{
public:
    static void Init(int argc, char* argv[]);
    static MprpcApplication& GetInstance();
    static MprpcConfig& GetConfig();

private:
    MprpcApplication(){}
    MprpcApplication& operator=(const MprpcApplication&) = delete;
    MprpcApplication(const MprpcApplication&) = delete;

    static MprpcConfig m_config;
};